<?php
require_once 'DonationAllocations.php';
require_once 'Sponsors.php';
require_once '../application/modules/loan/models/LoanMasters.php';

class Sponsor_DonationAllocationController extends HTech_Controller_Action
{
    function init()
    {
        $cfg = array(
            'model' => 'DonationAllocations', 
            //'form' => 'Emms_Form_Sponsor_Donation',
            'config' => array('add' => 'donation_allocations')
        );
        parent::init($cfg);   
    }
    
    function viewAction()
    {
        parent::viewAction();
        $this->_redirect(sprintf('/loan/loan-master/view/id/%s',$this->view->DonationAllocations->d->LoanMasterId));
    }
}
